package com.taxi.controller;

import com.taxi.response.TrackResponse;
import com.taxi.result.Result;
import com.taxi.service.TrackService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: aniu
 * @Date: 2023/10/1
 * @ClassName: TrackController
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@RestController
@RequestMapping("/track")
public class TrackController {
    @Autowired
    private TrackService trackService;

    @ApiOperation("添加轨迹")
    @PostMapping("/add")
    public Result<TrackResponse> add(String tid){
        return trackService.add(tid);
    }
}
